#ifndef AGENTTASKDATATHRESHTRIGGER_H
#define AGENTTASKDATATHRESHTRIGGER_H

#include <QObject>
#include "Agent/agenttaskbase.h"
class QTimer;

class AgentTaskDataThreshTrigger : public AgentTaskBase
{
    Q_OBJECT
public:
    explicit AgentTaskDataThreshTrigger(QMap <QByteArray,QByteArray> mapIPPortReqPacket,QByteArray packet,
           QString paramAppIP,quint16 paramAppPort,QObject *parent = 0);
    ~AgentTaskDataThreshTrigger();
signals:

public slots:
    //基类的构造函数在构造的时候，会自动调用这个函数
    void slotInitDerivedClass();

    void slotGetData();

private:
    void analyzeIncomeDatagram(QByteArray packet);

    quint32 holdTimesDone; //记录已经连续多少次满足条件
    QTimer *timerForGetData;//用于查询数据的timer
    QByteArray baPacketToGetData; //查询数据用的数据包

};

#endif // AGENTTASKDATATHRESHTRIGGER_H
